Skip to content

[DT-3930] Fix login page theming with DarkMode overrideTheme#3563

Draft
andrewzamojc wants to merge 1 commit into
mainfrom
dt-3930-login-page-hardcodes-a-white-background
Draft

[DT-3930] Fix login page theming with DarkMode overrideTheme#3563
andrewzamojc wants to merge 1 commit into
mainfrom
dt-3930-login-page-hardcodes-a-white-background

Conversation

@andrewzamojc

Copy link
Copy Markdown
Contributor

Summary

The login page presents a hardcoded light surface, but child components (e.g. a Holocene Link) still resolved their dark-mode colors via prefers-color-scheme, producing white-on-white in dark mode.

This adds an overrideTheme?: 'light' | 'dark' prop to the DarkMode component / darkMode action. When set, it supersedes the user's dark-mode store/system preference and writes the value straight to body[data-theme]; when absent, behaviour is unchanged. The (login) layout now mounts <DarkMode overrideTheme="light" /> so login-page components render consistently in light mode. Also fixes a leaked store subscription in the darkMode action (now unsubscribes on destroy).

Consumers like cloud-ui can drive this from page data via overrideTheme={override ?? undefined}.

Jira

https://temporalio.atlassian.net/browse/DT-3930

Test plan

  • Core flow tested manually
  • Edge cases verified
  • No regressions in adjacent flows

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
holocene Ready Ready Preview, Comment Jun 16, 2026 7:23pm

Request Review

DarkMode now accepts an `overrideTheme` prop ('light' | 'dark') that supersedes the user's dark-mode preference and writes it to body[data-theme]. The (login) layout mounts <DarkMode overrideTheme="light" /> so login-page components stop resolving dark-mode colors against a hardcoded light surface. Also fixes a leaked store subscription in the darkMode action.

DT-3930
@andrewzamojc andrewzamojc force-pushed the dt-3930-login-page-hardcodes-a-white-background branch from 92410fe to ba11825 Compare June 16, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant